package com.ylr.dbtest;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * @author ylr
 * @version 1.0.0
 * @ClassName Student.java
 * @Description TODO
 * @createTime 2022年03月18日 18:02:00
 */
@TableName("student")
public class Student implements Serializable {
    @TableId(
            value = "id",
            type = IdType.INPUT
    )
    private Integer id;
    @TableField("name")
    private String name;
    private static final long serialVersionUID = 1L;
    public static final String COL_ID = "id";
    public static final String COL_NAME = "name";

    public Integer getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public void setId(final Integer id) {
        this.id = id;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public String toString() {
        return "Student(id=" + this.getId() + ", name=" + this.getName() + ")";
    }

    public Student(final Integer id, final String name) {
        this.id = id;
        this.name = name;
    }

    public Student() {
    }
}